package com.ruoyi.back.service

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.baomidou.mybatisplus.extension.service.IService
import com.ruoyi.app.common.Data
import com.ruoyi.back.domain.SpreadCenter
import com.ruoyi.back.domain.dto.SpreadCenterListSearchDto

interface SpreadCenterService : IService<SpreadCenter> {

    /**
     * 保存推广中心
     */
    fun saveSpreadCenter(spreadCenter: SpreadCenter): Data<Boolean>

    /**
     * 推广中心分页
     */
    fun spreadCenterPage(spreadCenterListSearchDto: SpreadCenterListSearchDto): Page<SpreadCenter>

    /**
     * 移除推广中心
     */
    fun removeSpreadCenter(spreadCenterIds: String): Data<Boolean>
}